<%--
  Created by IntelliJ IDEA.
  User: barton
  Date: 16-1-26
  Time: 下午2:20
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/x-icon" href="static/images/favicon.ico">
    <title>登陆</title>
    <script src="//cdn.bootcss.com/jquery/1.12.0/jquery.min.js"></script>
    <script>
        $(function () {
            $("#login").on("click", function () {
                // 需要加解密 或者 用ajax的方式重写
                window.location.href = "/login?userName=" + $("#userName").val() + "&password=" + $("#password").val();
            })
        });
    </script>
</head>
<body>
用户名:<input type="text" id="userName" placeholder="用户名" value=""><br/>
密码:<input type="password" id="password" placeholder="密码" value=""><br/>
<button type="button" id="login">点击登陆</button>
<br/>
<div>
    ${result}
</div>
</body>
</html>
